﻿////////////////////////////////////////////////////////////////
///
/// File: Kernels.cs
/// Author: Cristian Dittamo
/// Last update: 11 Dec 2009
/// Description: This file contains the definition of the 
///              main classes needed for defining special-purpose attributes.
/// To do: 
/// ------------------------------------------------------------
/// Copyright (c) 2009-2010 Cristian Dittamo (dittamo@di.unipi.it)
/// 
/// The use and distribution terms for this software are 
/// contained in the file named license.txt, which can be found 
/// in the root of this distribution.
/// By using this software in any fashion, you are agreeing to 
/// be bound by the terms of this license.
///
/// You must not remove this notice, or any other, from this
/// software.
/// ------------------------------------------------------------
////////////////////////////////////////////////////////////////
using System;
using System.Collections;
using System.Collections.Generic;

namespace StreamDefs
{
    ///<remarks>
    /// Base class for Kernel attribute
    ///</remarks>
    public sealed class KernelsAttribute : Attribute
    {
        private int nrtasks;

        ///<summary>
        /// Number of Tasks; Programmers can suggest the number of task to spawn on Stream architectures
        ///</summary>
        public int NrTasks 
        { 
            get { return nrtasks; }
            set { nrtasks = value; }
        }
    }
}
